package com.smfx.yxt.daoSqlserver;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.smfx.yxt.model.NoticeSendeeRecord;
import com.smfx.yxt.reqVo.NoticeSendeeReqVO;

public interface NoticeSendeeRecordMapper {

    int insertSelective(NoticeSendeeRecord record);

    NoticeSendeeRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NoticeSendeeRecord record);
    
    List<NoticeSendeeRecord> selectListByNoticeId(Integer noticeId);
    
    List<NoticeSendeeRecord> selectListForParentByNoticeId(Integer noticeId);
    
    List<NoticeSendeeRecord> selectListForNoReadByNoticeId(Integer noticeId);
    
    /**
     * 插入家长通知 身份以学生id组成
     * @param record
     * @return
     */
    int insertParentNotice(NoticeSendeeReqVO record);
    /**
     * 插入家长通知 身份以学生班级组成
     * @param record
     * @return
     */
    int insertParentNoticeForClass(NoticeSendeeReqVO record);
   
    /**
     * 插入老师通知 身份以老师id组成
     * @param record
     * @return
     */
    int insertTeacherNotice(NoticeSendeeReqVO record);

    int updateRead(@Param("sendeeId")Integer sendeeId, @Param("noticeIds")List<Integer> noticeIds);
}